﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package net.wooga.pets.controllers.data {
    import net.wooga.pets.events.*;
    import net.wooga.pets.constants.*;
    import org.robotlegs.mvcs.*;
    import net.wooga.pets.services.*;

    public class SendSoundStateCommand extends Command {

        public var soundService:SoundService;

        override public function execute():void{
            var _local1:RequestEvent = new RequestEvent(EventConstants.SEND_REQUEST);
            _local1.addRequest("settings", {effects:String(!(this.soundService.effectsMuted))});
            var _local2:RequestEvent = new RequestEvent(EventConstants.SEND_REQUEST);
            _local2.addRequest("settings", {sound:String(!(this.soundService.musicMuted))});
            dispatch(_local1);
            dispatch(_local2);
        }

    }
}//package net.wooga.pets.controllers.data 
